﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace FrbaCommerce
{

    static class Program
    {
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMenuPrincipal());
        }

            public static DateTime FechaActual
            {
                get { 
                    return Convert.ToDateTime(System.Configuration.ConfigurationSettings.AppSettings["Fecha"].ToString());
                }
            }



        public static SqlConnection obtenerConexion()
        {
            SqlConnection conn = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings["string_conexion"].ToString());
            conn.Open();
            return conn;
        }
    }
}
